pg Windows to PG FreeBSD

pg Windows to PG FreeBSD

am 23.04.2010 22:05:17 von herbey zepeda

--0050450158a63988fb0484ecf2da
Content-Type: text/plain; charset=ISO-8859-1

hi

I have one install of postgresql in Windows, and a second in FreeBSD. Both
are the 8.4 version
I am trying to connect from the windows install to the FreeBSD server
install


psql -h 10.10.90.125 -U myUser -d template1

and the result is:


"Could not connect to server connection refused....is the server running on
host .... and accepting tcp/ip connections on port 5432?"

I searched in severa places, one of them is:

http://www.postgresql.org/docs/8.3/static/server-start.html

http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.h tml

http://www.postgresql.org/docs/8.4/static/runtime-config-con nection.html

http://www.cyberciti.biz/tips/postgres-allow-remote-access-t cp-connection.html

in addition to the manual,


I do not have the same problem when I try a Windows to Windows connection.


I already placed the "*" in the listen_addresses option and "host all all
10.10.90.0/24 trust".

I'm not sure what to do now, again, windows to windows there is no problem,

thanks

--0050450158a63988fb0484ecf2da
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

hi

=A0

I have one install of postgresql in Windows, and a second in FreeBSD. =
Both are the 8.4 version

I am trying to connect from the windows install to the FreeBSD server =
install

=A0

=A0

psql -h 10.10.90.125 -U=A0myUser -d template1

=A0

and the result is:

=A0

=A0

"Could not connect to server connection refused....is the server =
running on host .... and accepting tcp/ip connections on port 5432?" div>
=A0

I searched in severa places, one of them is:

=A0

">http://www.postgresql.org/docs/8.3/static/server-start.htm l

=A0

html">http://www.postgresql.org/docs/8.2/static/auth-pg-hba- conf.html div>
=A0

nnection.html">http://www.postgresql.org/docs/8.4/static/run time-config-con=
nection.html

=A0

tcp-connection.html">http://www.cyberciti.biz/tips/postgres- allow-remote-ac=
cess-tcp-connection.html

=A0

in addition to the manual,

=A0

=A0

I do not have the same problem when I try a Windows to Windows connect=
ion.

=A0

=A0

I already placed the "*" in the listen_addresses option and=
=A0 "host all all 0.0/24">10.10.90.0/24 trust".

=A0

I'm not sure what to do now, again, windows to windows there is no=
problem,

=A0

thanks


--0050450158a63988fb0484ecf2da--

Re: pg Windows to PG FreeBSD

am 23.04.2010 22:11:19 von Scott Marlowe

On Fri, Apr 23, 2010 at 2:05 PM, herbey zepeda wro=
te:
> hi
>
> I have one install of postgresql in Windows, and a second in FreeBSD. Both
> are the 8.4 version
> I am trying to connect from the windows install to the FreeBSD server
> install
>
>
> psql -h 10.10.90.125 -U=A0myUser -d template1
>
> and the result is:
>
>
> "Could not connect to server connection refused....is the server running =
on
> host .... and accepting tcp/ip connections on port 5432?"

So, the windows machine can't get to port 5432 on the bsd machine.
The problem can be anything from a firewall (exxternal) to the app not
running on the host machine.

Does that same string work on the bsd box?

> I searched in severa places, one of them is:
> http://www.postgresql.org/docs/8.3/static/server-start.html
> http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.h tml
> http://www.postgresql.org/docs/8.4/static/runtime-config-con nection.html
> http://www.cyberciti.biz/tips/postgres-allow-remote-access-t cp-connection=
..html
> in addition to the manual,
>
> I do not have the same problem when I try a Windows to Windows connection.

Of course, the problem is likely that the bsd box isn't answering on
that port for whatever reason.

> I already placed the "*" in the listen_addresses option and=A0 "host all =
all
> 10.10.90.0/24 trust".

Where did you change this? On the bsd box or the windows box (should
be bsd) If on bsd did you then restart the server on bsd?

--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Re: pg Windows to PG FreeBSD

am 24.04.2010 04:30:56 von herbey zepeda

--000e0cd2454667c68a0484f255df
Content-Type: text/plain; charset=ISO-8859-1

I appologize,

I did everything as stated in the manuals and more, but I did not remove the
comment character from the configuration file postgres.conf. The connection
from pg WIndows to pg Freebsd was succesful,

thanks for your reply



On Fri, Apr 23, 2010 at 4:11 PM, Scott Marlowe wrote:

> On Fri, Apr 23, 2010 at 2:05 PM, herbey zepeda
> wrote:
> > hi
> >
> > I have one install of postgresql in Windows, and a second in FreeBSD.
> Both
> > are the 8.4 version
> > I am trying to connect from the windows install to the FreeBSD server
> > install
> >
> >
> > psql -h 10.10.90.125 -U myUser -d template1
> >
> > and the result is:
> >
> >
> > "Could not connect to server connection refused....is the server running
> on
> > host .... and accepting tcp/ip connections on port 5432?"
>
> So, the windows machine can't get to port 5432 on the bsd machine.
> The problem can be anything from a firewall (exxternal) to the app not
> running on the host machine.
>
> Does that same string work on the bsd box?
>
> > I searched in severa places, one of them is:
> > http://www.postgresql.org/docs/8.3/static/server-start.html
> > http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.h tml
> > http://www.postgresql.org/docs/8.4/static/runtime-config-con nection.html
> >
> http://www.cyberciti.biz/tips/postgres-allow-remote-access-t cp-connection.html
> > in addition to the manual,
> >
> > I do not have the same problem when I try a Windows to Windows
> connection.
>
> Of course, the problem is likely that the bsd box isn't answering on
> that port for whatever reason.
>
> > I already placed the "*" in the listen_addresses option and "host all
> all
> > 10.10.90.0/24 trust".
>
> Where did you change this? On the bsd box or the windows box (should
> be bsd) If on bsd did you then restart the server on bsd?
>

--000e0cd2454667c68a0484f255df
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I appologize,
=A0
I did everything as stated in the manuals and=
more, but I did not remove the comment character from the configuration fi=
le postgres.conf. The connection from pg WIndows to pg Freebsd was succesfu=
l,=A0

=A0
thanks for your reply



=A0

On Fri, Apr 23, 2010 at 4:11 PM, Scott Marlowe <=
span dir=3D"ltr"><scott.marlo=
we@gmail.com
> wrote:

; PADDING-LEFT: 1ex" class=3D"gmail_quote">
On Fri, Apr 23, 2010 at 2:05 PM, herbey zepeda < f=3D"mailto:zepedaherbey@gmail.com">zepedaherbey@gmail.com> wrote: r>> hi
>
> I have one install of postgresql in Windows, and =
a second in FreeBSD. Both

> are the 8.4 version
> I am trying to connect from the windows in=
stall to the FreeBSD server
> install
>
>
> psql -h=
10.10.90.125 -U=A0myUser -d template1
>
> and the result is: r>
>
>
> "Could not connect to server connection refused..=
...is the server running on
> host .... and accepting tcp/ip connectio=
ns on port 5432?"

So, the windows machine can't get t=
o port 5432 on the bsd machine.

The problem can be anything from a firewall (exxternal) to the app not
r=
unning on the host machine.

Does that same string work on the bsd bo=
x?

Of course, the problem is likely that the bsd box=
isn't answering on
that port for whatever reason.


> I already placed the "*" in the listen=
_addresses option and=A0 "host all all
> ..90.0/24" target=3D"_blank">10.10.90.0/24 trust".

Whe=
re did you change this? =A0On the bsd box or the windows box (should

be bsd) =A0If on bsd did you then restart the server on bsd?
e>



--000e0cd2454667c68a0484f255df--

Re: pg Windows to PG FreeBSD

am 24.04.2010 05:48:02 von Scott Marlowe

On Fri, Apr 23, 2010 at 8:30 PM, herbey zepeda wrote:
> I appologize,
>
> I did everything as stated in the manuals and more, but I did not remove the
> comment character from the configuration file postgres.conf. The connection
> from pg WIndows to pg Freebsd was succesful,

No need for an apology. You had a problem and came here for help.
That's what the list is for. Glad you got it figured out.

--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin